public class VIPDiscount implements Discount{
    private int score=0;
    @Override
    public double calculate(double price) {
        score+=price;
        if (price >= 100){
            System.out.println("VIP用户有小礼品");
        }
        return 0.5*price;
    }
}
